package org.adnet.sdk.ad;

public class SelfAd implements Comparable<SelfAd>{

	private String image;
	private String downloadUrl;
	private String packagename;
	private int order;
	private String localimg;
	
	public String getLocalimg() {
		return localimg;
	}
	public void setLocalimg(String localimg) {
		this.localimg = localimg;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getDownloadUrl() {
		return downloadUrl;
	}
	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}
	public String getPackagename() {
		return packagename;
	}
	public void setPackagename(String packagename) {
		this.packagename = packagename;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	@Override
	public int compareTo(SelfAd another) {
		
		if (this.order < another.order) {
			return 0;
		} else {
			return 1;
		}
		
	}
	
}
